import React from 'react'
import { useList } from '../../context/ListProvider'
import Item from './Item'

const List = () => {
  const {state:{list}} = useList();
  return (
    <div>
        列表
        {
            list.map(item=> <Item item={item}/> )
        }
    </div>
  )
}

export default List